package com.dr.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dr.entity.Comment;
import com.dr.mapper.CommentWebMapper;
import com.dr.service.CommentWebService;
@Service
@Transactional
public class CommentWebServiceImpl implements CommentWebService {
	@Autowired
	private CommentWebMapper commentwebMapper;

	@Override
	public List<Comment> AllComment(Integer id) {
		// TODO Auto-generated method stub
		return commentwebMapper.AllComment(id);
	}

	@Override
	public int addComment(Comment comment) {
		// TODO Auto-generated method stub
		return commentwebMapper.addComment(comment);
	}
	
	

}
